home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / TSR / PPTSR10 / MAKEFILE < prev    next >
Text File  |  1993-02-12  |  1KB  |  65 lines

  1. # If you have your TP and TASM the same, don't change it
  2. # if not, point to the right stuff...
  3. #
  4. TPDIR = c:\tp
  5. TASM  = tasm
  6. #
  7. # swap next definitions of TPC if debugging wanted
  8. #
  9. #TPCD  = $(TPDIR)/tpc /t$(CFG);$(TPDIR)
  10. TPC   = $(TPDIR)/tpc /t$(CFG);$(TPDIR)
  11.  
  12. # swap next definitions of DEL if you don't have 4dos
  13. #
  14. # DEL  = del
  15. #
  16. DEL   = del /q
  17.  
  18. CFG   = .\tpc.cfg
  19.  
  20. APPS = beeper.exe \
  21.        filer.exe \
  22.        funfunk.exe \
  23.        keycode.exe
  24.  
  25. all: $(APPS) makefile
  26.  
  27. $(CFG): makefile
  28.         echo /Uc:\tp;c:\tp\units;c:\tp\src >$(CFG)
  29.         echo /Oc:\tp\src;c:\tp\units >>$(CFG)
  30.     echo /$G+ >>$(CFG)
  31.         echo /L >> $(CFG)
  32.  
  33. beeper.exe: $(CFG) beeper.pas tsr.tpu
  34.     $(TPC) beeper
  35.  
  36. filer.exe: $(CFG) filer.pas tsr.tpu tsrutil.tpu
  37.     $(TPC) filer
  38.  
  39. funfunk.exe: $(CFG) funfunk.pas tsr.tpu
  40.     $(TPC) funfunk
  41.     
  42. keycode.exe: $(CFG) keycode.pas tsrutil.tpu
  43.     $(TPC) keycode
  44.  
  45. tsr.tpu: tsr.pas tsr.obj tphex.tpu
  46.         $(TPC) tsr.pas
  47.     
  48. tsr.obj: tsr.asm
  49.         $(TASM) tsr.asm
  50.     
  51. tsr.asm: tsr.pas
  52.         sed -n -e "s/^;//p" tsr.pas > tsr.asm
  53.     
  54. tsrutil.tpu: tsrutil.pas
  55.     $(TPC) tsrutil.pas
  56.     
  57. tphex.tpu: tphex.pas
  58.         $(TPC) tphex.pas
  59.  
  60. clean:
  61.         $(DEL) *.exe *.tpu tsr.asm $(CFG)
  62.  
  63. veryclean:
  64.         $(DEL) *.obj *.exe *.tpu tsr.asm $(CFG)
  65.